package com.nf.bookstytem.service.readermanage;

import java.util.List;

import com.nf.bookstytem.dao.readermanage.ReaderManageDaoImpl;
import com.nf.bookstytem.model.readermanage.ReaderModel;

public class ReaderManageService {
	private ReaderManageDaoImpl dao=new ReaderManageDaoImpl();
	public List<ReaderModel>getAll(){
		return dao.getAll();
	}
	
	public int deleteReaderById(int id) {
		return dao.deleteReaderById(id);
	}
	
	public int insertReader(ReaderModel reader) {
		return dao.insertReader(reader);
	}
	
	public int updateReader(ReaderModel reader) {
		return dao.updateReader(reader);
	}
	 public List<ReaderModel> PageList(int pageNo,int pageSize){
		 return dao.PageList(pageNo, pageSize);
	 }
	 
	 public int getPages() {
		 return dao.getPages();
	 }
}
